<template>
  <a-layout class="layout">
    <!-- 顶部导航 -->
    <a-layout-header class="header">
      <div style="font-size: 16px;font-weight: 500;">
        博客管理系统
      </div>
      <div>
        <LogoutButton :redirectToLogin="false"></LogoutButton>
      </div>
    </a-layout-header>
    <a-layout-content class="content">
      <div class="left">

      </div>
      <div class="center">
        <RouterView></RouterView>
      </div>
      <div class="right">
      </div>
    </a-layout-content>
  </a-layout>
</template>

<script setup>
import LogoutButton from '@/components/LogoutButton.vue'

</script>

<style lang="css" scoped>
.layout {
  height: 100%;
}

.header {
  height: 60px;
  box-sizing: border-box;
  min-height: 60px;
  max-height: 60px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-2);
  align-items: center;
}

.left {
  width: 300px;
  border-right: 1px solid var(--color-border);
  height: calc(100vh - 60xp);
  overflow: auto;
}

.right {
  width: 300px;
  border-left: 1px solid var(--color-border);
  height: calc(100vh - 60xp);
  overflow: auto;
}

.content {
  margin-top: 60px;
  height: calc(100vh - 60xp);
  display: flex;
  justify-content: center;
  overflow: auto;
}

.center {
  width: 100%;
  height: calc(100vh - 60xp);
  overflow: auto;
}

.center::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari 和 Opera */
}
</style>
